<?php
/**
* @version		1.0  - 	Joomla 1.5.x
* @package		Module Cat Menu Products
* @copyright	Wampvn Group
* @license		GNU/GPL
* @website          http://wampvn.com
* @description    tpl.
*/
defined('_JEXEC') or die('Restricted access');
global $option;
?>
<div class="product_slide_wrap">
<a href="#" class="prev"><?php echo JText::_('PREV');?></a>
<a href="#" class="next"><?php echo JText::_('NEXT');?></a>
<div id="mycarousel-up">
    <ul>
    	<?php foreach ($catpro as $i => $pro) { ?>
            <?php $filename = modProductsHelper::getImageDefault($pro->id);?>
    		<?php if($filename && file_exists('images/products/'.$filename)){
    			$image = JURI::base().'images/products/'. $filename;
    		}else{
    			$image = JURI::base().'images/products/thumbs/noimage.jpg';
    		}
    		?>
                <li><a href="<?php echo JRoute::_('index.php?option=com_products&view=category&Itemid=4');?>"><img src="<?php echo $image; ?>" alt="<?php echo $pro->name; ?>" width="242" height="165"/></a></li>
    	<?php } ?>
    </ul>
</div><!--End . -->
</div><!-- #product_slide_wrap -->